﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SlideShow.Models.MdlCursos>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Listado de Cursos</h2>

    <table>
        <tr>
            <th style="width: 233px"></th>
            <th style="width: 64px">
                Id
            </th>
            <th style="width: 431px">
                Nombre
            </th>
            <th style="width: 397px">
                Tipo
            </th>
            <th style="width: 428px">
                Responsable
            </th>
            <th style="width: 345px">
                DuracionHoras
            </th>
            <th style="width: 396px">
                PreRequisito
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td align="center" style="width: 233px">
                <%: Html.ActionLink("Edit", "Edit", new { id = item.id })%> |
                <%: Html.ActionLink("Details", "Details", new {id=item.id })%> |
            </td>
            <td align="center" style="width: 64px">
                <%: item.id %>
            </td>
            <td align="center" style="width: 431px">
                <%: item.nombre %>
            </td>
            <td align="center" style="width: 397px">
                <%: item.tipo %>
            </td>
            <td align="center" style="width: 428px">
                <%: item.responsable %>
            </td>
            <td align="center" style="width: 345px">
                <%: item.duracionHoras %>
            </td>
            <td align="center" style="width: 396px">
                <%: item.preRequisito %>
            </td>
        </tr>
    
    <% } %>

    </table>

    
</asp:Content>

